import re

if __name__ == '__main__':
    error_pattern = re.compile(r'^未知错误|^00005011|^00004104|^00003011|^could not execute statement|^0000400[1-9]|^0000500[1-6]')

    print(re.compile(r'^0004004').match('0004004,23'))
    print(re.compile(r'^0004004').match('1004004,23'))
    print(re.compile(r'^000400[1-9]').match('0004001，kkll'))
    print(re.compile(r'^000400.').match('1004005,23'))
    print(error_pattern.match('00005005,23'))
    print(error_pattern.match('00005007,23'))

